package com.example.study.design.factory;

import com.example.study.service.KeyService;
import com.example.study.service.ShareKeyServiceImpl;
import org.springframework.stereotype.Component;

/**
 * 分享钥匙工厂
 *
 * @author duckquan
 */
@Component
public class ShareKeyFactory implements KeyMethodFactory {

    @Override
    public KeyService getInstance() {
        return new ShareKeyServiceImpl();
    }

}
